package _17作业._接口t2;

public class MotorVehicle {
    private  String brand;
    private double price;

    public MotorVehicle() {
    }

    public MotorVehicle(String brand, double price) {
        this.brand = brand;
        this.price = price;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void run(){
        System.out.println("机动车运行");
    }
}
